#求100以内斐波那契数列

fib = []
a = 0
b = 1
# for i in range(100):
#     a,b = b,a+b
#     #print(a)
#     fib.append(a)
#     if b > 100:
#         break
# print(fib)

while b < 100:
    a,b = b,a+b
    #print(a)
    fib.append(a)
print(fib)


#求斐波那契数列101项   573147844013817084101
a = 0
b = 1
count = 0
while count < 101:
    a, b = b, a + b
    count +=1
    # if count == 101:
    #     break
print(a)


# 做得不错
